package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgPublishAccusation;
import com.ygqh.baby.po.YgPublishAccusationExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface YgPublishAccusationMapper {
	int countByExample(YgPublishAccusationExample example);

	int deleteByExample(YgPublishAccusationExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgPublishAccusation record);

	int insertSelective(YgPublishAccusation record);

	List<YgPublishAccusation> selectByExample(YgPublishAccusationExample example);

	YgPublishAccusation selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgPublishAccusation record, @Param("example") YgPublishAccusationExample example);

	int updateByExample(@Param("record") YgPublishAccusation record, @Param("example") YgPublishAccusationExample example);

	int updateByPrimaryKeySelective(YgPublishAccusation record);

	int updateByPrimaryKey(YgPublishAccusation record);

	int countSuper(@Param("q") String q, @Param("nickName") String nickName, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

	List<YgPublishAccusation> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q, @Param("nickName") String nickName,
			@Param("startDate") Date startDate, @Param("endDate") Date endDate);

}
